package servlet;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

public class Welcome extends HttpServlet {
    @Override
    protected void service(HttpServletRequest request,HttpServletResponse response) throws IOException {

        response.setContentType("text/html;charset=utf-8");

        PrintWriter pw = response.getWriter();
        pw.print("<html>");
        pw.print("<head><title>用户欢迎界面</title></head>");
        pw.print("<body>");
        pw.print("<p>欢迎来到另一个世界</p>");
        pw.print("</body>");
        pw.print("</html>");
    }
}
